#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>

static void adjust(char *buf)
{
	int i, count = 0;
	while(buf[count] == '	')
	  count++;
	for(i = 0; i < strlen(buf)+1-count; i++)
	{
		buf[i] = buf[i+count];
	}
	return;
}

void read_data(char buf[][100])
{
	FILE *fp = fopen("Studentsystem.xml", "r");
	assert(fp != NULL);
	
	int i = 0;
	while(fgets(buf[i], 100, fp) != NULL)
	{
		adjust(buf[i]);
		i++;
	}
	fclose(fp);
}

